package com.trkj.service;

import java.math.BigDecimal;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.trkj.dao.jpa.IJlRecipeDAO;
import com.trkj.pojos.JlRecipe;

@Service
@Transactional
public class JlRecipeService {
	@Autowired
	private IJlRecipeDAO RecipeDAO;
	public void addJlRecipe(String rGuige, String rName, BigDecimal rNum, BigDecimal rPrice, String rRemark, String rResule, BigDecimal rIcid,BigDecimal epid){
		JlRecipe recipe=new JlRecipe();
		recipe.setRGuige(rGuige);
		recipe.setRName(rName);
		recipe.setRNum(rNum);
		recipe.setRPrice(rPrice);
		recipe.setRRemark(rRemark);
		recipe.setRResule(rResule);
		recipe.setRIcid(rIcid);
		recipe.setEpid(epid);
		RecipeDAO.save(recipe);
	     }
}
